﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ComeSeeThis_MVC2.Models.VehicleType>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Vehicle Types
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <% Html.RenderPartial("SubMenu"); %>
   <h2>
        Vehicle Types</h2>
    <table>
        <tr>
            <th>
                Scale
            </th>
            <th>
                Type
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                1/<%: item.Scale %>
            </td>
            <td>
                <%: Html.ActionLink(item.VehicleTypeName, "Details", new { id=item.VehicleTypeId}) %>
            </td>
        </tr>
        <% } %>
    </table>
</asp:Content>
